package com.escool.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.escool.dao.CatTipoCobroDAO;
import com.escool.model.TbTipoCobro;

@Service
public class CatTipoCobroServiceImpl implements CatTipoCobroService{
@Autowired
CatTipoCobroDAO catTipoCobroDAO;

@Transactional
public void addTbTipoCobro(TbTipoCobro tbTipoCobro) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.addTbTipoCobro(tbTipoCobro);
}

@Transactional
public void editTbTipoCobro(TbTipoCobro tbTipoCobro) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.editTbTipoCobro(tbTipoCobro);
}

@Transactional
public void delTbTipoCobro(int id) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.delTbTipoCobro(id);
}

@Transactional
public List<TbTipoCobro> listTbTipoCobro() {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.listTbTipoCobro();
}

@Transactional
public TbTipoCobro findTbTipoCobro(int id) {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.findTbTipoCobro(id);
}

}
